<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */



$cakeDescription = __d('cake_dev','ScrumEgg' );//'CakePHP: the rapid development php framework');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <?php echo $this->element('templates/header'); ?>        
<body  style="padding-top: 0px; cursor: auto;">
     <?php echo $this->element('templates/nav'); 
//    var_dump($this->Session->read('Organization'));
    ?>
    
        
	<div class="container" id="container" > <!--style="padding-top: 50px;"-->
     
            <?php if ($this->Session->check('Organization.Project')&& isset($project)){?>
                <br/>
                
                <div class="row-fluid">
                   
                    <div class="span11"  id="content">
                        <?php } ?>
                            <?php echo $this->Session->flash('flash', array('params' => array('class' => 'alert alert-warning'))); ?>

                            <?php echo $this->fetch('content'); ?>
                        <?php if ($this->Session->check('Organization.Project')&& isset($project)){?>
                    </div>
                     <div class="span1" id="sideBar">
                        <div class="span12" >
                            
                            <div class="span3" id="boton">
                                <a  class="btn btn-small btn-inverse"  id="hide" style="display:none;width: 10px; position: absolute; right:200px; border-radius: 1px;" onclick="
                                            var side=document.getElementById('options');
                                            var show=document.getElementById('show');
                                            var hide=document.getElementById('hide');
                                            side.style.display='none';
                                            show.style.display='block';
                                            hide.style.display='none';
                                            var contenido=document.getElementById('content');
                                            var boton=document.getElementById('boton');
                                            var sideBar=document.getElementById('sideBar');
                                            contenido.className='span11';
                                            boton.className='span12';
                                            sideBar.className='span1';
                                            return false;" >
                                            <i class="icon-chevron-right icon-white"></i>&nbsp;
                                            <svg xmlns='http://www.w3.org/2000/svg' style="height: 60px;">
                                             <text x='-50' y='10' font-family='Helvetica' font-size='14' transform='rotate(-90)' text-rendering='optimizeSpeed' fill='#FFF'>Ocultar &nbsp;</text> 
                                            </svg>
         
                                </a>
                                
                                <a class="btn btn-small btn-inverse" id="show" style="width: 10px; position: absolute; right:0px; border-radius: 1px;" onclick="
                                        var side=document.getElementById('options');
                                        var hide=document.getElementById('hide');
                                        var show=document.getElementById('show');
                                        side.style.display='block';
                                        show.style.display='none';
                                        hide.style.display='block';
                                        var contenido=document.getElementById('content');
                                        var boton=document.getElementById('boton');
                                        var sideBar=document.getElementById('sideBar');
                                        contenido.className='span10';
                                        boton.className='span12';
                                        sideBar.className='span2';

                                        return false;" >
                                        <i class="icon-chevron-left icon-white"></i>&nbsp;
                                        <svg xmlns='http://www.w3.org/2000/svg' style="height: 60px;">  
                                             <text x='-50' y='10' font-family='Arial' font-size='14' transform='rotate(-90)' text-rendering='optimizeSpeed' fill='#FFF'>Enlaces </text> 
                                        </svg>    
<!--                                        <br/>m<br/>o<br/>s<br/>t<br/>r<br/>a<br/>r<br/>-->
                               </a>
                            </div>
                            <div class="span9" id="options" style="display:none">
                                <div class="popout-side-bar-holder" style="width: 200px"> 
                                <div class="popout-side-bar" >
                                    <div class="sideBar" style="height: 500px; ">
                                    <h3><?php echo $project['Project']['name'];?></h3>     
                                    <ul>
                                        <li>
                                            <figure><a href="<?php echo $this->base;?>/projects/view/<?php echo $project['Project']['id'];?>"
                                                       style=" color: black;"> 
                                                
                                                    <i class="icon-briefcase"></i> Resumen &nbsp;&nbsp;
                                                    </a>
<!--                                                    <span class="badge badge-warning">2</span>-->
                                               
                                             
                                            </figure>
                                        </li>
                                        <li>
                                            <figure>
                                                <?php echo $this->Html->image('icons/32x32/users.png', array( 'width' => '16px')) ;?>
                                                <a href="<?php echo $this->base;?>/projects/members/<?php echo $project['Project']['id'];?>"
                                                       style=" color: black;"> 
                                                
                                                     Miembros de Proyecto&nbsp;&nbsp;
                                                    </a>
                                               
                                             
                                            </figure>
                                        </li>
                                        <li>
                                            <figure>
                                                <?php echo $this->Html->image('icons/32x32/comments.png', array( 'width' => '16px')) ;?>
                                                <a href="<?php echo $this->base;?>/forums/index/<?php echo $project['Project']['id'];?>"
                                                       style=" color: black;"> 
                                                
                                                   Foro &nbsp;&nbsp;
                                                    </a>
<!--                                                    <span class="badge badge-warning">2</span>-->
                                               
                                             
                                            </figure>
                                        </li>
                                        <li>
                                            <figure>
                                                <?php echo $this->Html->image('icons/24x24/inbox.png', array( 'width' => '16px')) ;?>
                                                
                                                <a href="<?php echo $this->base;?>/projects/repository/<?php echo $project['Project']['id'];?>"
                                                       style=" color: black;"> 
                                                    Repositorio &nbsp;&nbsp;
                                                    </a>
<!--                                                    <span class="badge badge-warning">2</span>-->
                                               
                                             
                                            </figure>
                                        </li>

                                        
                                        <hr>
                                        <li>
                                            <h3>Product Backlog</h3>
                                        </li>
                                         <li>
                                            <figure>
                                                <?php echo $this->Html->image('icons/24x24/glyphicons_071_book.png', array( 'width' => '16px')) ;?>

                                                <a href="<?php echo $this->base;?>/projects/planning/<?php echo $project['Project']['id'];?>/1"
                                                       style=" color: black;">
                                                    Planeamiento &nbsp;&nbsp;
                                                    </a>
<!--                                                    <span class="badge badge-warning">2</span>-->


                                            </figure>
                                        </li>
                                        <li>    
                                            <figure>
                                                <a href="<?php echo $this->base;?>/projects/backlog/<?php echo $project['Project']['id'];?>" rel="tooltip" title="Vista Tarjeta" style=" color: black;">
                                                <i class="icon-th-list"></i> Lista
                                                </a>
                                            </figure>
                                        </li>   
                                        <li>    
                                            <figure>
                                                <a href="<?php echo $this->base;?>/projects/backlogGrid/<?php echo $project['Project']['id'];?>" rel="tooltip" title="Vista Tarjeta" style=" color: black;">
                                                    <i class="icon-th"></i> Pizarra
                                                </a>
                                            </figure>
                                        </li> 
                                        <li>
                                            <figure>
                                                <a href="<?php echo $this->base;?>/projects/backlogCard/<?php echo $project['Project']['id'];?>" rel="tooltip" title="Vista Tarjeta" style=" color: black;">
                                                    <i class="icon-list-alt"></i> Tarjetas
                                                </a>
                                            </figure>
                                        </li>    
                                        
                                    </ul>
                                    
                                    <ul>  
                                        <li>
                                        <h3>Sprint 1</h3>
                                        </li>    
                                         <li>    
                                            <figure>
                                                Backlog
                                                <a href="<?php echo $this->base;?>/projects/backlog/<?php echo $project['Project']['id'];?>/0" rel="tooltip" title="Vista Lista" style=" color: black;">
                                                <i class="icon-th-list"></i> 
                                                </a>
                                                <a href="<?php echo $this->base;?>/projects/backlogGrid/<?php echo $project['Project']['id'];?>/0" rel="tooltip" title="Vista Pizarra" style=" color: black;">
                                                <i class="icon-th"></i> 
                                                </a>
                                                <a href="<?php echo $this->base;?>/projects/backlogCard/<?php echo $project['Project']['id'];?>/0" rel="tooltip" title="Vista Tarjeta" style=" color: black;">
                                                <i class="icon-list-alt"></i> 
                                                </a>
                                            </figure>
                                        </li> 
                                        <li>    
                                            <figure>

                                                <a href="<?php echo $this->base;?>/projects/pokerPlanningView/<?php echo $project['Project']['id'];?>/0" rel="tooltip" title="Ver" style=" color: black;">
                                                    <i class="icon-eye-open"></i>
                                                </a>
                                                <a href="<?php echo $this->base;?>/projects/pokerPlanning/<?php echo $project['Project']['id'];?>/0" rel="tooltip" title="Registrar" style=" color: black;">
                                                <i class="icon-time"></i> PokerPlanning
                                                </a>
                                            </figure>
                                        </li>
                                        <li>
                                            <figure>
                                                <?php echo $this->Html->image('icons/24x24/glyphicons_043_group.png', array( 'width' => '16px')) ;?>

                                                <a href="<?php echo $this->base;?>/projects/planning/<?php echo $project['Project']['id'];?>/0/0"
                                                       style=" color: black;">
                                                    Reunión &nbsp;&nbsp;
                                                 </a>
                                            </figure>
                                        </li>
                                        <li>
                                            <figure>
                                                <?php echo $this->Html->image('icons/24x24/glyphicons_080_retweet.png', array( 'width' => '16px')) ;?>

                                                <a href="<?php echo $this->base;?>/projects/retrospective/<?php echo $project['Project']['id'];?>/0"
                                                       style=" color: black;">
                                                    Retrospectiva &nbsp;&nbsp;
                                                 </a>
                                            </figure>
                                        </li>
                                    </ul>
                                    </div>
                                    <?php if ($this->Session->check('Organization.Project')){ ?>
                                    <?php $project=$this->Session->read('Organization.Project');   ?>
                                     
                                    
                                    <?php }?>        

                                </div></div>
<!--                                <div class="sideBottom">
				<button class="btn btn-primary headblue" data-toggle="collapse" data-target="#tasksSideList">TaskList <i class="icon-white icon-circle-arrow-down"></i></button>
				<ul id="tasksSideList" class="in collapse" style="height: auto; ">
					<li data-taskid="6" data-taskstate="1"><i class="icon-ok"></i> 6. <a href="#">Explore Elements</a></li>
					<li data-taskid="5" data-taskstate="0"><i class="icon-remove"></i> 5. <a href="#">Add New Project</a></li>
					<li data-taskid="4" data-taskstate="0"><i class="icon-remove"></i> 4. <a href="#">Add New Messages</a></li>
					<li data-taskid="3" data-taskstate="1"><i class="icon-ok"></i> 3. <a href="#">Custom Functions</a></li>
					<li data-taskid="2" data-taskstate="0"><i class="icon-remove"></i> 2. <a href="#"></a>Custom CSS</li>
					<li data-taskid="1" data-taskstate="1"><i class="icon-ok"></i> 1. <a href="#">Love this Theme :)</a></li>
				</ul>
                                </div>-->
                            </div>
                        </div>
                    </div>    
                </div>
		<?php } ?>	
		
	</div>
        
        <?php echo $this->element('templates/footer'); ?>        
	<?php 
//          echo $this->element('sql_dump');
        ?>
    
        
</body>
</html>
